home *** CD-ROM | disk | FTP | other *** search
- on REDADD
- global GRIDY, GRIDV, GRIDH, KK, KKK, KN, NU, SOND, DT
- set NU to 0
- set DT to 2
- set KK to 0
- set DT to 35
- repeat while KK = 0
- set NU to NU + 1
- set KKK to random(10)
- set KN to KKK * 14
- if NU > 150 then
- set KN to random(12) + 2
- end if
- if getAt(GRIDV, KN) = 0 then
- set KK to KN
- end if
- end repeat
- if SOND = 0 then
- puppetSound("WISH")
- end if
- set the locH of sprite 29 to getAt(GRIDH, KN)
- set the locV of sprite 29 to getAt(GRIDY, KN)
- setAt(GRIDV, KN, 3)
- repeat with N = 1 to 3
- if N = 1 then
- set the castNum of sprite 29 to 200
- end if
- if N = 2 then
- set the castNum of sprite 29 to 199
- end if
- if N = 3 then
- set the castNum of sprite 29 to 4
- end if
- updateStage()
- COUNTTIME()
- end repeat
- REMOVESPRITE()
- end
-